package com.southwind.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Wangchuang
 * @Date: 2022/4/26 14:09
 * @Version 1.0
 * @Description:
 */

@RestController
@RequestMapping("/native")
public class NativeConfigHandler {
    
    @Value("${server.port}")
    private String port;
    
    @Value("${foo}")
    private String foo;
    
    @GetMapping("/index")
    public String index(){
        return this.port+"-"+this.foo;
    }
}
